Description
Used to define a Button control in a form.
Diagram
Overview
![](xsdimages/element.png) |
BUTTON
Used to define a Button control in a form.
![](xsdimages/attributeref.png) |
height required Restriction of xs:int
|
![](xsdimages/attributeref.png) |
width required Restriction of xs:int
|
![](xsdimages/attribute.png) |
x required xs:int
|
![](xsdimages/attribute.png) |
y required xs:int
|
![](xsdimages/attributeref.png) |
alignment optional Restriction of xs:string
|
![](xsdimages/attributeref.png) |
backgroundcolor optional xs:string
|
![](xsdimages/attributeref.png) |
border optional Restriction of xs:string
|
![](xsdimages/attributeref.png) |
caption optional xs:string
|
![](xsdimages/attributeref.png) |
color optional xs:string
|
![](xsdimages/attributeref.png) |
font optional xs:string
|
![](xsdimages/attributeref.png) |
fontsize optional Restriction of xs:int
|
![](xsdimages/attributeref.png) |
fontstyle optional Restriction of xs:string
|
![](xsdimages/attributeref.png) |
group optional Restriction of xs:string
|
![](xsdimages/attributeref.png) |
name optional xs:string
|
![](xsdimages/attributeref.png) |
onclick optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
onkillfocus optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
onsetfocus optional xs:string
Specify the script to run when this event occurs.
|
![](xsdimages/attributeref.png) |
tabstop optional Restriction of xs:string
|
|
Attributes
Name | Type | Use | Default | Fixed | Description |
height | Restriction of xs:int | required | | | |
width | Restriction of xs:int | required | | | |
x | xs:int | required | | | |
y | xs:int | required | | | |
alignment | Restriction of xs:string | optional | left | | |
backgroundcolor | xs:string | optional | | | |
border | Restriction of xs:string | optional | false | | |
caption | xs:string | optional | | | |
color | xs:string | optional | | | |
font | xs:string | optional | | | |
fontsize | Restriction of xs:int | optional | | | |
fontstyle | Restriction of xs:string | optional | regular | | |
group | Restriction of xs:string | optional | false | | |
name | xs:string | optional | | | |
onclick | xs:string | optional | | | Specify the script to run when this event occurs. |
onkillfocus | xs:string | optional | | | Specify the script to run when this event occurs. |
onsetfocus | xs:string | optional | | | Specify the script to run when this event occurs. |
tabstop | Restriction of xs:string | optional | true | | |
Examples
ArcPad applet file (*.apa) with a form
Source
<xs:element name="BUTTON" maxOccurs="1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:documentation>Used to define a Button control in a form.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute ref="height" use="required" />
<xs:attribute ref="width" use="required" />
<xs:attribute use="required" name="x" type="xs:int" />
<xs:attribute use="required" name="y" type="xs:int" />
<xs:attribute ref="alignment" />
<xs:attribute ref="backgroundcolor">
<xs:annotation>
<xs:documentation>The background color to use for the button. If not specified, this value is inherited from the page's backgroundcolor attribute.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="border" />
<xs:attribute ref="caption">
<xs:annotation>
<xs:documentation>The text appearing in the button.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="color">
<xs:annotation>
<xs:documentation>The color to use for the button's text. If not specified, this value is inherited from the page's color attribute.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="font">
<xs:annotation>
<xs:documentation>The font to use for the button's text. If not specified, this value is inherited from the page's font attribute.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="fontsize">
<xs:annotation>
<xs:documentation>The font size to use for the button's text. If not specified, this value is inherited from the page's fontsize attribute.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="regular" ref="fontstyle">
<xs:annotation>
<xs:documentation>The font style to use for the button's text. If not specified, this value is inherited from the page's fontstyle attribute. If the value is not regular, it can be any combination of other values, expressed as a comma delimited list (for example, fontstyle="bold,underline").</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="group" />
<xs:attribute ref="name">
<xs:annotation>
<xs:documentation>Name of the Button control. Used to reference the control in scripts</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="onclick" />
<xs:attribute ref="onkillfocus" />
<xs:attribute ref="onsetfocus" />
<xs:attribute ref="tabstop" />
</xs:complexType>
</xs:element>
|
See Also